package com.wcs.exam.controller.admin.resp;

import com.fasterxml.jackson.annotation.JsonFormat;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.io.Serial;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * Admin-试卷信息-查看响应对象
 * </p>
 *
 * @author wcs
 * @since 2025-03-11
 */
@Getter
@Setter
@Accessors(chain = true)
@Schema(description = "Admin-试卷信息-查看响应对象")
public class AdminPaperViewResp implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "主键")
    private Long id;

    @Schema(description = "试卷类型(1:普通试卷、2:题库试卷)")
    private Integer paperType;

    @Schema(description = "试卷名称")
    private String paperName;

    @Schema(description = "分类ID")
    private Long categoryId;

    @Schema(description = "答卷时间(分钟)")
    private Integer answerTime;

    @Schema(description = "总分")
    private BigDecimal totalScore;

    @Schema(description = "及格分数")
    private BigDecimal passScore;

    @Schema(description = "及格百分比")
    private Integer passPercentage;

    @Schema(description = "试题数量")
    private Integer questionCount;

    @Schema(description = "随机组题设置(0:关闭、1:开启)")
    private Boolean randomCombine;

    @Schema(description = "乱序设置(0:关闭、1:开启)")
    private Boolean derangement;

    @Schema(description = "题目乱序(0:关闭、1:开启)")
    private Boolean questionDerangement;

    @Schema(description = "选项乱序(0:关闭、1:开启)")
    private Boolean optionDerangement;

    @Schema(description = "发布状态(0:未发布，1:已发布)")
    private Integer publishStatus;

    @Schema(description = "状态")
    private Integer status;

    @Schema(description = "排序")
    private Integer sort;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "创建时间")
    private LocalDateTime gmtCreate;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "修改时间")
    private LocalDateTime gmtModified;
}
